const mongoose = require("mongoose");
const md5 = require("md5");
const { Schema } = mongoose;

const Eps_articleSchema = new Schema(
    {
        title: {
            type: String,
            default: ""
        },
        content: {
            type: String,
            default: ""
        }
    },
    {
        toJSON: {
            virtuals: true,
            versionKey: false,
            transform(doc, ret) {
                ret.id = ret._id;
                delete ret._id;
            }
        },
        minimize: false
    }
);

mongoose.model("Eps_article", Eps_articleSchema);
